﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace DXApplicationTangche.UC.固定资产
{
    public partial class Form供应商创建 : DevExpress.XtraEditors.XtraForm
    {
        private AssertVendorDTO assertVendorDTO = new AssertVendorDTO();
        public Form供应商创建()
        {
            InitializeComponent();
        }

        private void simpleButton提交_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(this.textBox供应商.Text) 
                || String.IsNullOrEmpty(this.textBox联系人.Text) 
                    || String.IsNullOrEmpty(this.textBox联系方式.Text) 
                        )
            {
                MessageBox.Show("填写信息不全");
                return;
            }
            else
            {
                this.assertVendorDTO =
                    固定资产Service.createAssertVendorDTO(
                        this.textBox供应商.Text,
                        this.textBox联系人.Text,
                        this.textBox联系方式.Text,
                        this.textBoxemail.Text
                        );
                this.Close();
            }
        }

        private void simpleButton取消_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}